package com.zzyl.nursing.service.member;

import com.zzyl.nursing.domain.member.Reservation;
import com.zzyl.nursing.dto.member.ReservationDto;
import com.zzyl.nursing.vo.member.CreateByTimeVo;
import com.zzyl.nursing.vo.member.ReservationVo;

import java.time.LocalDateTime;
import java.util.List;

public interface MemberReservationService {
    /**
     * 新增预约
     * @param dto
     * @return
     */
    boolean add(ReservationDto dto);

    Integer getCancelCount();

    /**
     * 获取剩余预约数量
     * @return
     */
    List<CreateByTimeVo> getCountByTime();

    /**
     * 列表查询预约
     * @param status
     * @return
     */
    ReservationVo findByPage(Integer pageNum, Integer pageSize,Integer status);

    boolean cancel(Long id);
}
